package com.xieyingwangluo.yxpart.bean;

import com.xieyingwangluo.yxpart.entity.CompanyInfoModel;
import com.xieyingwangluo.yxpart.utils.DateUtil;
import lombok.Data;

import java.util.Date;

@Data
public class CompanyInfoBean {
    private String noid;//公司信息编号UUID
    private String name;//公司名称
    private String type;// 企业类型
    private Integer state;//审核状态（审核通过0，审核不通过1）
    private String city;//所在城市
    private String operat;//经营状态
    private String duration;// 经营期限
    private String capital;//注册资本
    private String industry;//行业类型
    private Date join_time;//成立时间
    private String address;//地址
    private String regist;//登记机关
    private String creditcode;//统一社会信用代码
    private String code;//组织机构代码
    private String scope;//经营范围
    private String merchant_id;//关联的商户id

    public CompanyInfoBean(CompanyInfoModel companyInfoModel) {
        noid = companyInfoModel.getNoid();
        name = companyInfoModel.getName();
        type = companyInfoModel.getType();
        state = companyInfoModel.getState();
        city = companyInfoModel.getCity();
        operat = companyInfoModel.getOperat();
        duration = companyInfoModel.getDuration();
        capital = companyInfoModel.getCapital();
        industry = companyInfoModel.getIndustry();
        join_time = companyInfoModel.getJoin_time();
        address = companyInfoModel.getAddress();
        regist = companyInfoModel.getRegist();
        creditcode = companyInfoModel.getCreditcode();
        code = companyInfoModel.getCode();
        scope = companyInfoModel.getScope();
        merchant_id = companyInfoModel.getMerchant_id();
    }
}
